<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$db = mysqli_connect("localhost","root","","portalinmobiliario");

$sql = "SELECT * FROM se_usuarios WHERE idusuario = 6";
$sth = $db->query($sql);
$result=mysqli_fetch_array($sth);
echo '<img src="data:'.$result['mime'].';base64,'.base64_encode( $result['imagen'] ).'"/>';
//echo '<br><br><img src="data:image/jpeg;base64,'.base64_encode( $result['thumb'] ).'"/>';

?>

